
package com.scalar.chiptrack.operations.packingslip;

import com.scalar.chiptrack.utils.StringUtils;

public final class CustomerShippingLotNumberData {

    // BR, March 16. 2004
    private int m_id = -1;
    private int m_lotId = -1;
    private String m_lotNumber = null;
    private String fabLotNumber = null;

    private int m_qtyPull = -1;
    private String m_lineItemNo = null;
    private String m_trackingNumber = null;
    private String m_dateCode = null;

    public CustomerShippingLotNumberData() {
    }

    public CustomerShippingLotNumberData (int id, int lotId, int qtyPull) {
        m_id = id;
        m_lotId = lotId;
        m_qtyPull = qtyPull;
    }

    public CustomerShippingLotNumberData (int id, int lotId, String lotNumber, int qtyPull) {
        m_id = id;
        m_lotId = lotId;
        m_qtyPull = qtyPull;
        m_lotNumber = lotNumber;
    }

    // BR, March 16, 2004
    public CustomerShippingLotNumberData (int id, int lotId, String lotNumber,
                                          int qtyPull, String lineItemNo, String trackingNumber  ) {
        m_id = id;
        m_lotId = lotId;
        m_qtyPull = qtyPull;
        m_lotNumber = lotNumber;
        m_lineItemNo = lineItemNo;
        m_trackingNumber = trackingNumber;
    }

    // BR, March 16, 2004
    public CustomerShippingLotNumberData (int id, int lotId, String trackingNumber ) {
        m_id = id;
        m_lotId = lotId;
        m_trackingNumber = trackingNumber;
    }

    public CustomerShippingLotNumberData (int id, int lotId, String lotNumber, int qtyPull, String dateCode) {
        m_id = id;
        m_lotId = lotId;
        m_qtyPull = qtyPull;
        m_lotNumber = lotNumber;
        m_dateCode = dateCode;
    }
    
    public CustomerShippingLotNumberData (int id, int lotId, String lotNumber, String fabLotNumber, int qtyPull, String dateCode) {
        m_id = id;
        m_lotId = lotId;
        m_qtyPull = qtyPull;
        m_lotNumber = lotNumber;
        this.fabLotNumber = fabLotNumber;
        m_dateCode = dateCode;
    }

	/**
	 * @return Returns the fabLotNumber.
	 */
	public String getFabLotNumber() {
		return fabLotNumber;
	}
	/**
	 * @param fabLotNumber The fabLotNumber to set.
	 */
	public void setFabLotNumber(String fabLotNumber) {
		this.fabLotNumber = fabLotNumber;
	}

    /**
     * ID Property
     */
    public int getId() {
        return m_id;
    }

    public void setId (int id) {
        m_id = id;
    }

    /**
     * LotId Property
     */
    public int getLotId() {
        return m_lotId;
    }

    public void setLotId (int lotId) {
        m_lotId = lotId;
    }



    /**
     * Lot Number Property
     */
    public String getLotNumber() {
        return m_lotNumber;
    }

    public void setLotNumber (String lotNumber) {
        m_lotNumber = lotNumber;
    }


    /**
     * QtyPull Property
     */
    public int getQtyPull() {
        return m_qtyPull;
    }

    // BR, March 16, 2004
    public String getQtyPullAsString() {
        return StringUtils.formatUnits( m_qtyPull );
    }


    public void setQtyPull (int qtyPull) {
        m_qtyPull = qtyPull;
    }

    /**     -- BR, March 16, 2004
     * LineItem Number property
     */
    public String getLineItemNo()
    {
        return m_lineItemNo;
    }

    public void setLineItemNo( String lineItemNo )
    {
        m_lineItemNo = lineItemNo;
    }

    public String getTrackingNumber()
    {
        return m_trackingNumber;
    }

    public void setTrackingNumber( String trackingNumber )
    {
        m_trackingNumber = trackingNumber;
    }

    public String getDateCode() {
        return m_dateCode;
    }

    public void setDateCode(String dateCode) {
        m_dateCode = dateCode;
    }

}